summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorCreaprog <creaprog@gmail.com>2015-02-15 17:28:19 +0100
committerCreaprog <creaprog@gmail.com>2015-02-15 17:28:19 +0100
commita063da939868abfb9aa4169ca714bfadab708c48 (patch)
tree54114a55f0a0f720e2944c92b687a9ee2b9a1e91 /Tools
parentFixed Server.cpp (diff)
downloadcuberite-a063da939868abfb9aa4169ca714bfadab708c48.tar
cuberite-a063da939868abfb9aa4169ca714bfadab708c48.tar.gz
cuberite-a063da939868abfb9aa4169ca714bfadab708c48.tar.bz2
cuberite-a063da939868abfb9aa4169ca714bfadab708c48.tar.lz
cuberite-a063da939868abfb9aa4169ca714bfadab708c48.tar.xz
cuberite-a063da939868abfb9aa4169ca714bfadab708c48.tar.zst
cuberite-a063da939868abfb9aa4169ca714bfadab708c48.zip
Diffstat (limited to 'Tools')
-rw-r--r--Tools/ProtoProxy/Server.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp
index 77d1af827..7d890124d 100644
--- a/Tools/ProtoProxy/Server.cpp
+++ b/Tools/ProtoProxy/Server.cpp
@@ -33,7 +33,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
}
#endif // _WIN32
- puts("Generating protocol encryption keypair...");
+ LOG("Generating protocol encryption keypair...");
m_PrivateKey.Generate();
m_PublicKeyDER = m_PrivateKey.GetPubKeyDER();
@@ -85,7 +85,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
void cServer::Run(void)
{
- puts("Server running.");
+ LOG("Server running.");
while (true)
{
sockaddr_in Addr;
@@ -97,10 +97,10 @@ void cServer::Run(void)
printf("accept returned an error: %d; bailing out.\n", SocketError);
return;
}
- puts("Client connected, proxying...");
+ LOG("Client connected, proxying...");
cConnection Connection(client, *this);
Connection.Run();
- puts("Client disconnected. Ready for another connection.");
+ LOG("Client disconnected. Ready for another connection.");
}
}